package com.jiayi.web.flux.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 *  响应式的、异步非阻塞的
 *  spring-webflux + Reactor + Netty
 * @author jiayi.nie
 * @date 2019年3月28日14:17:07
 */
@RestController
public class HelloController {

    @GetMapping("/hello")
    public Mono<String> hello() {
        return Mono.just("Welcome to reactive world ~");
    }
}